package io.terminus.spzx.model.entity.h5;

import io.swagger.v3.oas.annotations.media.Schema;
import io.terminus.spzx.model.entity.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.math.BigDecimal;

/**
 * @Author lichunlong lcl253137@alibaba-inc.com
 * @Desc 购物车Entity实体类
 * @Date 2024-03-10
 */
@Data
@Schema(description = "购物车实体类")
@EqualsAndHashCode(callSuper = true)
public class CartInfo extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "用户id")
    private Long userId;

    @Schema(description = "sku id")
    private Long skuId;

    @Schema(description = "放入购物车时价格")
    private BigDecimal cartPrice;

    @Schema(description = "数量")
    private Integer skuNum;

    @Schema(description = "图片文件")
    private String imgUrl;

    @Schema(description = "sku名称 (冗余)")
    private String skuName;

    @Schema(description = "isChecked")
    private Integer isChecked;

}